package com.example.demo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

//加了这个注解后，这个类在编译的时候，就会自动生成getter,equals,hashcode,toString等方法
@NoArgsConstructor//无参构造器
@AllArgsConstructor//全参构造器
@Data
public class User {
    private Integer id;
    private String name;
    private Short age;
    private Short gender;
    private String phone;
    // 用户生日
    private LocalDate birthday;
    // 注册时间
    private LocalDateTime registerTime;
}
